<?php
class Tmporder extends AppModel {

	var $name = 'Tmporder';
	var $validate = array(
		'ordertype_id' => array('numeric'),
		'author' => array('notempty'),
		'approved' => array('numeric')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Ordertype' => array(
			'className' => 'Ordertype',
			'foreignKey' => 'ordertype_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Students' => array(
			'className' => 'Students',
			'foreignKey' => 'student_ids',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

}
?>